#include<iostream>
using namespace std;
void reverse(int arr[],int n){
	int i=0,j=n-1;
	while(i<j){
		int t=arr[i];
		arr[i]=arr[j];
		arr[j]=t;
		i++;j--;
	}
}
void Print(int arr[],int n){
	for(int i=0;i<n;i++) cout<<arr[i]<<" ";
}
int main(){
	int arr[]={1,2,3,4,5,6,7};
	reverse(arr,7);
	Print(arr,7);
	return 0;
}
